package com.lianyz.bootdemo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context  =
                new AnnotationConfigApplicationContext(Config.class);

        UseFunctionService useFunctionService =
                context.getBean(UseFunctionService.class);

        System.out.println(useFunctionService.sayHello("Spring Boot"));

        context.close();
    }
}
